/*
* @Author: root
* @Date:   2017-11-25 18:50:32
* @Last Modified by:   root
* @Last Modified time: 2017-11-26 23:46:00
*/
'use strict'
var _utils = require('util/util.js');

var _product = {
    //获取商品列表的信息
    getProductList  : function(listParm,resolve,reject){
        _utils.request({
            url     : _utils.getServerUrl('/product/list.do'),
            data    : listParm,
            success : resolve,
            error   : reject
        });
    },//获取商品详细信息
    getProductDetail  : function(productId,resolve,reject){
        _utils.request({
            url     : _utils.getServerUrl('/product/detail.do'),
            data    : {
            	productId : productId
            },
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _product;